<?php include_stylesheets_for_form($form) ?>
<?php include_javascripts_for_form($form) ?>
<?php use_helper('Tooltip') ?>

<form
    action="<?php echo url_for('@lets_user_offer_'.($form->getObject()->isNew() ? 
		'create?member_id='.$member_id : 
		'update?id='.$form->getObject()->getId())) ?>"
    method="post">

    <?php if (!$form->getObject()->isNew()): ?>
        <input type="hidden" name="sf_method" value="put" />
    <?php endif ?>

   <table class="formtable" summary="Register a new user ask">

        <!-- Form body, displays fields -->

        <tbody>
            <?php echo $form->renderGlobalErrors() ?>
            <?php echo $form['name']->renderRow() ?>
            <?php echo $form['category_id']->renderRow() ?>
        </tbody>
		
		<tfoot>
            <tr>
                <td colspan="2">
                   <?php echo $form->renderHiddenFields() ?>
                   <?php echo link_to('Annuler', $linkCancel, array('class' => 'blue button')) ?>

                    <input type="submit" value="Sauvegarder" class="blue button" />
                </td>
            </tr>
        </tfoot> 
    </table>
</form>